package yhao.demo.service.erp.workflow.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import yhao.infra.feature.mysql.MysqlConfig;
import yhao.infra.service.config.DruidSqlStatConfig;
import yhao.infra.service.config.MapperScannerConfig;

/**
 * Created by yoara on 2017/8/23.
 */
@Configuration
@Import({DruidSqlStatConfig.class, MysqlConfig.class})
public class AutoMapConfig {
    @Bean(name="autoMapperScanner")
    public MapperScannerConfig autoMapperScanner(){
        MapperScannerConfig orgMapperScanner = new MapperScannerConfig();
        orgMapperScanner.setBasePackage("yhao.demo.service.erp.workflow.dao");
        return orgMapperScanner;
    }
}
